import cv2


def test1():
    #
    img = cv2.imread('test.png')
    # 展示图片
    cv2.imshow('Contours1', img)
    shape = img.shape;

    #
    gray = cv2.resize(img, dsize=(shape[1], shape[0]), fx=2, fy=2, interpolation=cv2.INTER_CUBIC)

    # 展示图片
    cv2.imshow('Contours2', gray)
    cv2.waitKey(0)
    cv2.destroyAllWindows()


if __name__ == "__main__":
    test1()
